const  express=require("express");
const  url=require("url");

const app=express();
const VipLogin=require("./data/vip_login.json");
const AdminLogin=require("./data/admin_login.json");


app.get('/login',(req,res)=>{
const user=url.parse(req.url,true).query.user;
if(user==='admin'){
    res.send(AdminLogin);
}
else {
    res.send(VipLogin);
}
});
app.listen(3300,()=>{
    console.log("服务器运行在3300");
})